#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  import_run_1.py
#       Author @  Huoty
#  Create date @  2016-05-20 13:09:05
#  Description @  
# *************************************************************


__all__ = ["import_all"]

import sys


print "This is a module to be imported."

def import_all(from_module_name, to_module_name):
    # hack: copy all globals from from_module_name to to_module_name, no matter how __all__ is defined
    # strange fromlist: http://stackoverflow.com/questions/2724260/why-does-pythons-import-require-fromlist
    sys.modules[to_module_name].__dict__.update({k:v for k, v in \
            __import__(from_module_name, fromlist=['foobar']).__dict__.iteritems() if not k.startswith('__')})
    print __name__

a = 1
b = 2
c = 3

# Script starts from here

if __name__ == "__main__":
    print a, b, c
